{include file="header/index" /}
<!--//laypage翻页需要 start-->
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/laypage/laypage.js"></script>
<script type="text/javascript" src="__JS__/laytpl/laytpl.js"></script>
<script type="text/javascript" src="__JS__/info.js"></script>
<link rel="stylesheet" href="__CSS__/laypage.css" />
<!--//laypage翻页需要 end-->

<meta charset="UTF-8">
<style>
	.form-control {
		height: 33px;
	}
</style>

<body>
	<div class="container privilegeUserList pb40">
		<div class="addUser">
			<form class="form-inline mt15 mb15" action="{:url('Parts/count')}" method="post">
				<div class="form-group mr20"><input type="radio" name="mouth" value="0" <?php if(isset($mouth)&&$mouth=='0'){echo 'checked';}?>>本月配件使用</div>
				<div class="form-group mr20">
					<input type="radio" name="mouth" value="1" <?php if(isset($mouth)&&$mouth=='1'){echo 'checked';}?>>上月配件使用
				</div>
				<div class="form-group mr20">
					<input type="radio" name="mouth" value="2" <?php if(isset($mouth)&&$mouth=='2'){echo 'checked';}?>>全部配件使用
				</div>
				<div class="form-group mr20">
					<input type="text" name="key" id="key" class="form-control input-max" placeholder="输入工程人员名字" value="<?php if(isset($key)&&$key!=''){echo $key;}?>">
				</div>
				<button class="btn btn-primary input-Btn" type="submit">搜索</button>
			</form>
		</div>

		<div class="table-responsive">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th>工程人员</th>
						<th>配件名称</th>
						<th>配件数量</th>
					</tr>
				</thead>
				<tbody>
                {volist  name="data" id="v"}
                    <tr>
                        <td>{$v.engineers_name}</td>
						<td>{$v.parts_name}</td>
						<td>{$v.parts_number}</td>
                    </tr>
                {/volist}
				</tbody>
			</table>
		</div>
	</div>


</body>

</html>